package com.housekeeping.housekeeping.serviceItem.utils;


/**
 * @author tomyeung-李尐达
 * @Descr 响应状态的枚举类
 * @attr code 状态码
 * @attr msg 提示消息
 */
public enum StatUtil {
    IMAGE_NOT_FOUND(404,"图片不存在"),
    SERVICE_ITEM_LIMIT(400,"该用户已有服务项"),
    NEED_LOGIN(401,"用户未登录"),
    PARAMS_VALID(403,"非法参数"),
    INTERNET_ERR(400,"没有连接到网络，请重试"),
    DATA_NULL(404,"查询不到数据"),
    ACCOUNT_EXIST(403,"用户已存在"),
    SUCCESS(200,"操作成功"),
    SERVER_BUST(500,"服务器繁忙"),
    NULL_ACCOUNT(401,"用户名或密码为空"),
    USER_ACCOUNT_ERR(401,"用户名或密码出错");
    private int code;
    private String msg;

    StatUtil(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }



    public String getMsg() {
        return msg;
    }

}
